package com.caiying.dota.spider.entity;

public class Video {
	public int id;
	// 预览时解析
	public String narrator_id;
	public String thumb;
	public String link;
	public String intro;
	public String time;
	public String pub;
	public String menu;
	public String num_play;
	public String num_comment;
	public String ishd;
	public String title;
	// 进入详情页面解析得到以下数据
	public String segs;
	public String logo;

	public Video(String narrator_id, String thumb, String link, String intro,
			String time, String pub, String menu, String num_play,
			String num_comment, String ishd, String title, String segs,
			String logo) {
		this.narrator_id = narrator_id;
		this.thumb = thumb;
		this.link = link;
		this.intro = intro;
		this.time = time;
		this.pub = pub;
		this.menu = menu;
		this.num_play = num_play;
		this.num_comment = num_comment;
		this.ishd = ishd;
		this.title = title;
		this.segs = segs;
		this.logo = logo;
	}

	public Video() {}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNarrator_id() {
		return narrator_id;
	}

	public void setNarrator_id(String narrator_id) {
		this.narrator_id = narrator_id;
	}

	public String getThumb() {
		return thumb;
	}

	public void setThumb(String thumb) {
		this.thumb = thumb;
	}

	public String getLink() {
		return link;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public String getIntro() {
		return intro;
	}

	public String getMenu() {
		return menu;
	}

	public void setMenu(String menu) {
		this.menu = menu;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getPub() {
		return pub;
	}

	public void setPub(String pub) {
		this.pub = pub;
	}

	public String getNum_play() {
		return num_play;
	}

	public void setNum_play(String num_play) {
		this.num_play = num_play;
	}

	public String getNum_comment() {
		return num_comment;
	}

	public void setNum_comment(String num_comment) {
		this.num_comment = num_comment;
	}

	public String getIshd() {
		return ishd;
	}

	public void setIshd(String ishd) {
		this.ishd = ishd;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getSegs() {
		return segs;
	}

	public void setSegs(String segs) {
		this.segs = segs;
	}

	public String getLogo() {
		return logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	//http://v.youku.com/v_show/id_XNDI3NTc5NTE2.html
	public static String getYoukuVideoId(String paramString){
		String str1 = paramString.replace("http://v.youku.com/v_show/id_", "");
		String str2 = str1.replace(".html", "");
		return str2;
	}

}
